/*
 * @Author: zhang zhijiang 2824735304@qq.com
 * @Date: 2024-12-05 20:34:15
 * @LastEditors: zhang zhijiang 2824735304@qq.com
 * @LastEditTime: 2024-12-06 17:19:52
 * @FilePath: /linux/test_12_5/task.hpp
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
#pragma once
#include<iostream>
#include<vector>
using namespace std;

typedef void (*task_t)();

void  task1()
{
    printf("this it task 1\n");
}
void  task2()
{
    printf("this is task2\n");
}
void  task3()
{
    printf("this is task 3\n");
    
}
void task4()
{
    printf("this is task 4\n");
}
void loadtasks(vector<task_t> *tasks)
{
    tasks->push_back(task1); 
    tasks->push_back(task2); 
    tasks->push_back(task3); 
    tasks->push_back(task4);
}